
public class job4 {

		public static void main(String[] args) {
			
			int arr1[] = new int[10];
	        int arr2[] = new int[]{3, 7, 9};
	        int x = 0, y = 0, z = 0;

	        for(int i=0;i<10;i++)
	        	arr1[i] = arr2[(int)( Math.random() * 3)];
	        
	        for(int i: arr1)
	        	System.out.print( i + " " );
	        
	        for(int i=0;i<10;i++){
	        	if(arr1[i]==3)
	        		x++;
	        	if(arr1[i]==7)
	        		y++;
	        	if(arr1[i]==9)
	        		z++;
	        }
	        
	        System.out.println();
	        System.out.print("Троек: " + x + "; Семерок: " + y + "; Девяток: " + z + ".");
		}
		
	
}
